import { GlobalFunction } from "../Script/base/GlobalFunction";

const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component  {

    @property(cc.Sprite)
    copyNodeSp:cc.Sprite = null;
    
    update(){
        this.copyNodeSp.spriteFrame = new cc.SpriteFrame(GlobalFunction.captureNode(this.node, 512, 512));
    }
}
